From: Richard M. Stallman Date: Tue, 1 Feb 1994 06:49:18 +0000 (+0000) Subject: (dumpglyphs): Don't crash for invalid face code. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~93341 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=a07d4bc5245f6995e8723c48be12c8034501b7a2;p=emacs.git (dumpglyphs): Don't crash for invalid face code. --- diff --git a/src/xterm.c b/src/xterm.c index e471311da5a..cc7f9aa7089 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -524,11 +524,11 @@ dumpglyphs (f, left, top, gp, n, hl) /* First look at the face of the text itself. */ if (cf != 0) { - /* The face codes on the glyphs must be valid indices into the - frame's face table. */ + /* It's possible for the display table to specify + a face code that is out of range. Use 0 in that case. */ if (cf < 0 || cf >= FRAME_N_COMPUTED_FACES (f) || FRAME_COMPUTED_FACES (f) [cf] == 0) - abort (); + cf = 0; if (cf == 1) face = FRAME_MODE_LINE_FACE (f);